# Contributor: Klemens Nanni <kl3@posteo.org>
# Maintainer: Klemens Nanni <kl3@posteo.org>
pkgname=lzlib
pkgver=1.11
pkgrel=0
pkgdesc="Library for the lzip compression file format"
url="http://www.nongnu.org/lzip/lzlib.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-dev"
source="https://download.savannah.gnu.org/releases/lzip/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5aa3ff084177efe906518724a98a78c32d1c0e02b967800a44388fc6af441de48fcc5899457913fca11fae3beb8bebc260ac447f0a336b1c14f3f13726114567  lzlib-1.11.tar.gz"
